//
//  SmallDecisionsTextView.h
//  SmallDecisions
//
//  Created by 李付雄 on 2025/7/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol SmallDecisionsTextViewDelegate <NSObject>

@optional

- (void)textView:(UITextView *)textView
    changeHeight:(CGFloat)height;

- (void)textViewChange:(UITextView *)textView;

@end

@interface SmallDecisionsTextView : UITextView


@property (nonatomic, assign) NSInteger showNumbers;
@property (nonatomic,   copy) NSString  *placeholder;
@property (nonatomic, strong) UIColor   *placeholderColor;

@property (nonatomic, weak) id<SmallDecisionsTextViewDelegate>placeholdTextViewDelegate;

- (void)textViewDidChange:(UITextView *)textView;

@end

NS_ASSUME_NONNULL_END